<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content animated fadeInRight">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
							<input id="parentSubjectId" name="parentSubjectId" type="hidden"
							th:value="${subject.parentId}">
							<input id="subjectId" name="subjectId" type="hidden"
							th:value="${subject.menuId}">
							<div class="form-group">
								<label class="col-sm-3 control-label">父科目：</label>
								<div class="col-sm-8">
									<div id="menuTree"></div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">科目代码：</label>
								<div class="col-sm-8">
									<input id="subjectCode" th:value="${subject.subjectCode}" name="subjectCode" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">科目名称：</label>
								<div class="col-sm-8">
									<input id="subjectName" th:value="${subject.name}" name="subjectName" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
									<input id="remarks" th:value="${subject.remarks}" name="remarks" class="form-control" type="text">
								</div>
							</div>
                            <div class="form-group">
								<label class="col-sm-3 control-label">状态：</label>
								<div class="col-sm-8">
									<label class="radio-inline"> <input type="radio"
										th:field="*{subject.flag}" name="flag" value="1" /> 启用
									</label> <label class="radio-inline"> <input type="radio"
										th:field="*{subject.flag}" name="flag" value="0" /> 禁用
									</label> 
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<input id="submit" class="btn btn-primary" name="submit" type="submit" value="提交" >
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
		</div>

	</div>
	<div th:include="include::footer"></div>
	<script src="/js/appjs/common/subject/edit.js"></script>
</body>

</html>
